package com.mysoft.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yang.m.zhang
 * @since 2018-08-30
 */
@TableName("t_ru_transaction")
@Setter
@Getter
@Data
public class Transaction extends Model<Transaction> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String transactionId;

    private String taskStatus;

    private String taskRealId;

    private String assignee;

    private Integer pause;

    private Integer createUserId;

    private Long createDateTime;

    private Integer updateUserId;

    private Long updateDateTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
